package cn.wolfcode.shop.api.service;

import cn.wolfcode.shop.api.domain.ProductSku;
import cn.wolfcode.shop.api.vo.CreateSkuVo;

import java.math.BigDecimal;
import java.util.List;

public interface IProductSkuService {
    /**
     * 创建商品SKU编码
     *
     * @param createSkuVo
     * @return
     */
    List<ProductSku> creatSKU(CreateSkuVo createSkuVo);

    /**
     * 判断商品是否已经生成sku码
     *
     * @param id
     * @return
     */
    boolean isGenerated(Long id);

    void saveSku(Long productId, List<ProductSku> productSkuList);

    List<ProductSku> selectSkuByProductId(Long id);

    BigDecimal selectMinPriceByProductId(Long id);
}
